use process_macro_test::*;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test() {
        start();
    }
}

pub fn start() {
    let at = AT { i: "".to_string(), t: 0 };
    // at.test();

    say();

    let e = hashmap!("1" => 2, "3" => 4);
    println!("{:?}", e);

    let n = N::new("to".to_string(), 9);
    println!("{:?}", n);
}

#[derive(A)]
struct AT {
    i: String,
    t: u8,
}

#[to_say("Hello, Rust!")]
fn say() {
}

#[derive(New, Debug)]
struct N {
    i: String,
    t: u8,
}